package org.middleware.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.middleware.entity.system.SysMenus;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhiqiangwu
 * @description 针对表【sys_menus(菜单表)】的数据库操作Mapper
 * @createDate 2025-09-05 16:40:01
 * @Entity generator.domain.SysMenus
 */
@Mapper
@Repository
public interface SysMenusMapper {
    List<SysMenus> getMenusBySysParent(@Param("system_id") int system_id, @Param("parent_id") int parent_id,
                                       @Param("name") String name);

    int create(SysMenus menu);

    int update(SysMenus menu);

    int delete(int id);

    int deleteAllSubmenus(@Param("list") List<Integer> list);
}




